package com.jiezhuo.utils;

import lombok.Getter;
import lombok.ToString;

/**
 * @author Administrator
 */

@Getter
@ToString
public enum ResultCodeEnum {

    /**
     * 成功
     */
    SUCCESS(200,"操作成功",true),

    NO_KNOW(201,"未知异常",false),

    QUERY_NULL(205,"查询为空",false),

    JSON_EXCEPTION(202,"json解析异常",false),

    ERROR(400,"操作失败",false);





    private int code;
    private String msg;
    private boolean success;

    ResultCodeEnum(int code, String msg, boolean success){
        this.code=code;
        this.msg=msg;
        this.success=success;
    }

}
